<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>js知识点</title>
  </head>
  <body>
    <script>
      const a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
      // 扩展运算符
      console.log(...a)

      // 常用于求最大最小值
      console.log('最大值', Math.max(...a))

      const fn = () => {
        console.log('fn')
      }
      fn()

      const fn1 = x => console.log(x + x)
      fn1(11)
    </script>
  </body>
</html>
